import request from '@/utils/request.js';

// 添加动态
export const addTrends = (data) => {
  console.log(data);
  return request({
    url: 'pc/trends/add',
    method: 'post',
    data: {
      ...data,
    },
  }).then((res) => {
    return res;
  });
};
// 动态列表
export const Trends = () => {
  return request({
    url: 'pc/trends/index',
    method: 'post',
    data: {},
  }).then((res) => {
    return res;
  });
};
// 删除动态
export const deleteTrends = (data) => {
  return request({
    url: 'pc/trends/del',
    method: 'post',
    data: {
      ...data,
    },
  }).then((res) => {
    return res;
  });
};
